package org.scs.carleton.ca.pgdt.pdt.layer;

import java.util.List;
import java.util.Map;

import org.scs.carleton.ca.pgdt.pdt.layer.wrapper.PrologQueryException;

/**
 * This is an interface for all prolog sessions.
 * 
 * @author tessierj
 *
 */
public interface IPrologSession {
	public Map<String, Object> queryOnce(String query) throws PrologQueryException;
	public List<Map<String, Object>> queryAll(String query) throws PrologQueryException;
	public Map<String, Object> queryOnce(String query, int flags) throws PrologQueryException;
	public List<Map<String, Object>> queryAll(String query, int flags) throws PrologQueryException;
	public void endSession();
}
